import request from '@/utils/request';

// 查询员工列表数据
export const queryPageApi = (name,gender,begin,end,page,pageSize) =>
   request.get(`/emps?name=${name}&gender=${gender}&begin=${begin}&end=${end}&page=${page}&pageSize=${pageSize}`);
// 添加员工数据
export const addApi = (emp) => request.post('/emps', emp);

// 根据id查询员工数据
export const queryByIdApi = (id) => request.get(`/emps/${id}`);
// 修改员工数据
export const updateApi = (emp) => request.put('/emps', emp);
// 删除员工数据
export const deleteApi = (ids) => request.delete(`/emps?ids=${ids}`);